﻿@model LeadMaster.Models.LeadStat

@using (Ajax.BeginForm(
    "EditLeadStat", "LeadBuilder", null,
    new AjaxOptions
    {
        HttpMethod = "Post",
        UpdateTargetId = "ShowLeadStat"
    }, new { @id = "formEditLeadStat" }))
{
    @Html.ValidationSummary(true)
    
    <fieldset>
    <legend>Edit Statutory Group</legend>

    @Html.HiddenFor(model => model.LeadTemplateID)
    @Html.HiddenFor(model => model.LeadStatID)

    <table class="formtable" cellspacing="0" cellpadding="0">
    <tr style="vertical-align: middle" valign="middle">
    <th style="width: 100px; vertical-align:middle; text-align: left;">
        @Html.LabelFor(model => model.Title, "Title", new { style = "vertical-align:middle;" })
    </th>
    <td style="vertical-align: middle; padding-top: 10px;">
        @Html.TextBoxFor(model => model.Title, new {@class="largetextbox"})
        @Html.ValidationMessageFor(model => model.Title)
    </td>
    </tr>
    <tr style="vertical-align: middle" valign="middle">
    <th style="width: 100px; vertical-align:middle; text-align: left;">
        @Html.LabelFor(model => model.Notes, "Caller script note", new { style = "vertical-align:middle;" })
    </th>
    <td style="vertical-align: middle; padding-top: 10px;">
        @Html.TextAreaFor(model => model.Notes, new { @class="notes"})
        @Html.ValidationMessageFor(model => model.Notes)
    </td>
    </tr>
    <tr style="vertical-align: middle" valign="middle">
    <th style="width: 100px; vertical-align:middle; text-align: left;">
        @Html.LabelFor(model => model.BackgroundColour, "Background Colour", new { style = "vertical-align:middle;" })
    </th>
    <td style="vertical-align: middle; padding-top: 10px;">
        @Html.TextBoxFor(model => model.BackgroundColour)
        @Html.ValidationMessageFor(model => model.BackgroundColour)
    </td>
    </tr>
    <tr style="vertical-align: middle" valign="middle">
    <th style="width: 100px; vertical-align:middle; text-align: left;">
        @Html.LabelFor(model => model.DisplayOrder, "Display Order", new { style = "vertical-align:middle;" })
    </th>
    <td style="vertical-align: middle; padding-top: 10px;">
        @Html.TextBoxFor(model => model.DisplayOrder)
        @Html.ValidationMessageFor(model => model.DisplayOrder)
    </td>
    </tr>
    <tr style="vertical-align: middle" valign="middle">
    <th style="width: 100px; vertical-align:middle; text-align: left;">
        @Html.LabelFor(model => model.QuestionOrder, "Questionnaire Order", new { style = "vertical-align:middle;" })
    </th>
    <td style="vertical-align: middle; padding-top: 10px;">
        @Html.TextBoxFor(model => model.QuestionOrder)
        @Html.ValidationMessageFor(model => model.QuestionOrder)
    </td>
    </tr>

    </table>
    </fieldset>
}

<script type="text/javascript">
    $().ready(function () {

    });
</script>